﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class promo_promotion : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string _strMaintenance = CE.Configuration.MyConfigurationManager.GetAppSettingValue("IsMaintenance");
        if (_strMaintenance == "1")
        {
            Response.Redirect("~/maintenance.aspx");
        }
        string _strCXLive = CE.Configuration.MyConfigurationManager.GetAppSettingValue("IsCXLive");
        //if (_strCXLive == "0")
        //{
        //    if (Session[CE.Global.General.Guest] == null)
        //    {
        //        Response.Redirect("~/default.aspx");
        //    }
        //    else
        //        if (Session[CE.Global.General.Guest].ToString() == "Provider")
        //        {
        //            if (Session[CE.Global.General.UserId] == null)
        //            {
        //                Response.Redirect("~/provider/providersecurelogin.aspx");
        //            }
                    
        //        }
        //}
    }
}
